﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;

namespace StateManager
{
    [DataContract]
    public class SManagerConfig
    {
        [DataMember(EmitDefaultValue = false, Order = 0)]
        public int MaxThreads = 50;
        [DataMember(Order = 1)]
        public bool Auto = true;
        [DataMember(Order = 2)]
        public bool Log2File = true;
        [DataMember(Order = 3)]
        public string ConfigsDir = "configs";
        [DataMember(Order = 4)]
        public Dictionary<string, string> TypeFiles = new Dictionary<string, string>();
        [DataMember(Order = 5)]
        public List<SInfo> SInfos = new List<SInfo>();
        public static string STRING_SInfos = "SInfos";
    }

    public class TypeFile
    {
        public string TypeName;
        public string File;
        public Type Type;
        public Assembly Asm;
    }
}
